package model;

import java.io.Serializable;

public class Location implements TockConstants, Serializable {
	public static final long serialVersionUID = 0; // What the hell is this?
	
	public int type;
	public int loc;
	public int color;
	
	public Location (int type, int color, int loc) {
		this.type = type;
		this.loc = loc;
		this.color = color;
	}
	
	public Location (int type, int loc) {
		this(type, 0, loc);
	}
	
	public boolean isEqual(Location loc) {
		return (((this.type == loc.type) && (this.loc == loc.loc) && (this.color == loc.color)) ||
				((this.type == loc.type) && (this.loc == loc.loc) && (this.type == LOC_TYPE_NORMAL)));
	}
	
	public String toString() {
		return ("Location(type,loc,color): (" + type + "," + loc + "," + color + ")");
	}
}
